#ifndef _EGS_INCLUDED
#define _EGS_INCLUDED

#include <stdio.h>
#include <string.h>
#include <errno.h>
#include "mask.h"

void egs_layer(int n);
void egs_mskpolygon3(int l, double x0, double y0, double x1, double y1, double x2, double y2);
void egs_mskpolygon4(int l, double x0, double y0, double x1, double y1,
    double x2, double y2, double x3, double y3);
void egs_mskpolygonN(int l, double *x, double *y, int n);
void egs_mskarc(int l, double w, double x1, double y1, double x2,
    double y2, double x3, double y3);
void egs_mskarc2 (int l, double w, double r, double a1, double a2, double x1,
    double y1);
void egs_mskcircle(int l, double w, double x1, double y1, double x2, double y2);
void egs_mskpolystart(int l, double w);
void egs_mskpolypoint(int l, double x, double y);
void egs_mskpolygonend(int l);
void egs_mskpolyend(int l);
void egs_mskpolygonstart(int l);
void egs_msk_main_header(const char *filename);
void egs_msk_sublayout_header(const char *layout);
void egs_msk_sublayout_trailer();
void egs_msk_trailer();
void egs_mskline(int l, double w, double xb, double yb, double xe, double ye);
void egs_msklayout(const int layoutnr, const char *name, double a, double x,
    double y, int flip);
    
    
#endif /* _MASK_INCLUDED */
